import request from '@/utils/request'

// 查询报修日志列表
export function listRepairLog(query) {
  return request({
    url: '/assets/repairLog/list',
    method: 'get',
    params: query
  })
}

// 查询报修日志详细
export function getRepairLog(repairApplicationId) {
  return request({
    url: '/assets/repairLog/' + repairApplicationId,
    method: 'get'
  })
}

// 新增报修日志
export function addRepairLog(data) {
  return request({
    url: '/assets/repairLog',
    method: 'post',
    data: data
  })
}

// 修改报修日志
export function updateRepairLog(data) {
  return request({
    url: '/assets/repairLog',
    method: 'put',
    data: data
  })
}

// 删除报修日志
export function delRepairLog(repairApplicationId) {
  return request({
    url: '/assets/repairLog/' + repairApplicationId,
    method: 'delete'
  })
}
